package ru.pachkun.home.block;

import org.openqa.selenium.support.FindBy;

import ru.yandex.qatools.htmlelements.element.Button;
import ru.yandex.qatools.htmlelements.element.HtmlElement;

public class ButtonFormBlock extends HtmlElement {

	@FindBy(name="resetBtn")
	private Button linkClearButton;
	
	@FindBy(name="checkBtn")
	private Button linkVerifyRPOButton;
	
	@FindBy(name="addBtn")
	private Button linkAddRPOButton;
	
	public void clickLinkClearButton() {
		linkClearButton.click();
	}

	public void clickLinkVerifyRPOButton() {
		linkVerifyRPOButton.click();
	}

	public void clickLinkAddRPOButton() {
		linkAddRPOButton.click();
	}
	
	public Boolean isEnableAddRPOButton() {
		return linkAddRPOButton.isEnabled();
	}
}
